package com.anmoyi.service.impl;

import com.anmoyi.model.dao.CustommassagecontentMapper;
import com.anmoyi.model.po.Custommassagecontent;
import com.anmoyi.service.CustommassagecontentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;


@Service
public class CustommassagecontentServiceImpl implements CustommassagecontentService {

    @Autowired
    private CustommassagecontentMapper custommassagecontentMapper;


    @Override
    public void addCustommassagecontent(Custommassagecontent custommassagecontent) {
        custommassagecontent.setCreateTime(new Date());

        custommassagecontentMapper.insertSelective(custommassagecontent);
    }
    @Override
    public void updateByPrimaryKeySelective(Custommassagecontent custommassagecontent) {

        custommassagecontentMapper.updateByPrimaryKeySelective(custommassagecontent);
    }
    @Override
    public void deleteByPrimaryKey(Integer id) {

        custommassagecontentMapper.deleteByPrimaryKey(id);
    }
    @Override
    public List<Custommassagecontent> selectBycid(String id) {

        return  custommassagecontentMapper.selectBycid(id);
    }

}
